<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>

<%@ page import="javax.portlet.*"%>
<%@ taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet"%>

<portlet:defineObjects />
<%PortletPreferences prefs = renderRequest.getPreferences();%>
<jsp:useBean id="wfs" class="portal.AvailableWorkflows"/>

<% String[] workflows = wfs.showWorkflows(); %>

<form method="post" action="<portlet:renderURL/>">
    Select a simulation type:
    <select name="workflow">
        <% for(int i=0; i<workflows.length; i++){ %>
        <option value="<%=workflows[i]%>"> <%=workflows[i]%> </option>
        <% } %>
    </select>

    <BR><BR>
    <INPUT type="submit" name="SUBMIT" value="Go">
</form>